/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.sf.sbv.modals.messageUI;

import java.awt.Color;

/**
 *
 * @author Pratik
 */
public class MessageTheme {
    private Color receivedMessageColor;
    private Color receivedPressedColor;

    private Color sentMessageColor;
    private Color sentPressedColor;

    public MessageTheme(Color receivedMessageColor, Color receivedPressedColor, Color sentMessageColor, Color sentPressedColor) {
        this.receivedMessageColor = receivedMessageColor;
        this.receivedPressedColor = receivedPressedColor;
        this.sentMessageColor = sentMessageColor;
        this.sentPressedColor = sentPressedColor;
    }

    public Color getReceivedMessageColor() {
        return receivedMessageColor;
    }

    public Color getSentMessageColor() {
        return sentMessageColor;
    }

    public Color getReceivedPressedColor() {
        return receivedPressedColor;
    }

    public Color getSentPressedColor() {
        return sentPressedColor;
    }

    private static MessageTheme theme;
    public static MessageTheme getDefaultTheme() {
        if(theme == null) {
            Color received = new Color(255, 255, 153);
            Color receivedPressed = new Color(207, 203, 203);

            Color sent = new Color(204, 255, 204);
            Color sentPressed = new Color(207, 203, 203);

            theme = new MessageTheme(received, receivedPressed, sent, sentPressed);
        }

        return theme;
    }
}
